Skip to content

Conversation

@KrzysztofPajak
Copy link
Member

No description provided.

@KrzysztofPajak KrzysztofPajak requested a review from Copilot May 30, 2025 18:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds store-level filtering and management UI for product attributes and specification attributes in the Store area.

  • Introduces new views and popups for predefined product attribute values and a shared AccessDenied modal.
  • Extends service interfaces and implementations to accept a storeId parameter and apply store-based filtering.
  • Updates controllers to remove the IGroupService dependency, adjust API calls, and revise cache keys for product attributes.

Reviewed Changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Web/Grand.Web.Store/Areas/Store/Views/Shared/AccessDenied.cshtml New modal view for access denied messages.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/PredefinedProductAttributeValueCreatePopup.cshtml Popup form for creating predefined attribute values.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/PredefinedProductAttributeValueEditPopup.cshtml Popup form for editing predefined attribute values.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Partials/CreateOrUpdatePredefinedProductAttributeValue.cshtml Partial for the create/update form of predefined values.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Partials/CreateOrUpdate.cshtml Main partial for product attribute form layout and tabs.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Partials/CreateOrUpdate.TabInfo.cshtml Tab content for attribute info and localization.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Partials/CreateOrUpdate.TabUsedByProducts.cshtml Tab showing products using the attribute.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Partials/CreateOrUpdate.TabPredefinedValues.cshtml Tab for managing predefined attribute values grid.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/List.cshtml Store-area list view with Kendo grid for attributes.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Edit.cshtml Store-area edit view for product attributes.
src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Create.cshtml Store-area create view for product attributes.
src/Web/Grand.Web.Admin/Controllers/SpecificationAttributeController.cs Removed groupService, updated list and store filtering calls.
src/Web/Grand.Web.Admin/Controllers/ProductAttributeController.cs Removed groupService, updated paging calls and store filter in API.
src/Core/Grand.Infrastructure/Caching/Constants/ProductAttributeCacheKey.cs Cache key updated to include storeId.
src/Business/Grand.Business.Core/Interfaces/Catalog/Products/ISpecificationAttributeService.cs Interface updated with storeId parameter.
src/Business/Grand.Business.Core/Interfaces/Catalog/Products/IProductService.cs Interface updated with storeId parameter.
src/Business/Grand.Business.Core/Interfaces/Catalog/Products/IProductAttributeService.cs Interface updated with storeId parameter.
src/Business/Grand.Business.Catalog/Services/Products/SpecificationAttributeService.cs Implementation applies storeId filter and ordering.
src/Business/Grand.Business.Catalog/Services/Products/ProductService.cs Implementation applies storeId filter to product queries.
src/Business/Grand.Business.Catalog/Services/Products/ProductAttributeService.cs Implementation applies storeId filter, updated cache key usage.
Comments suppressed due to low confidence (2)

src/Business/Grand.Web.Admin/Controllers/ProductAttributeController.cs:207

  • Passing an empty string for the storeId bypasses store filtering; consider supplying the current staff store ID to limit results appropriately.
await _productService.GetProductsByProductAttributeId(productAttributeId, "", command.Page - 1, command.PageSize);

src/Web/Grand.Web.Store/Areas/Store/Views/ProductAttribute/Partials/CreateOrUpdate.TabPredefinedValues.cshtml:69

  • The schema fields 'Product2Name' and 'ProductId2' don’t match the actual properties ('Name' and 'Id'); update them to reflect correct field names.
Product2Name: { editable: false, type: "string" },

@grandnode grandnode deleted a comment from Copilot AI May 30, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 3, 2025

@KrzysztofPajak KrzysztofPajak merged commit e56b544 into develop Jun 4, 2025
6 checks passed
@KrzysztofPajak KrzysztofPajak deleted the feature/store-manage-attributes-specifications branch June 4, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants